package com.ysu.yybk.controller;

import com.ysu.yybk.form.checkin.TeacherCheckinStart;
import com.ysu.yybk.service.CheckinTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/teacher/checkin")
public class CheckinTeacherController {
    @Autowired
    CheckinTeacherService checkinTeacherService;

    @PostMapping("/start")
    public Map<String,Object> start(@RequestBody TeacherCheckinStart checkinStart){
        return checkinTeacherService.start(checkinStart);
    }
}
